package com.glink.manage.common;

import com.google.common.collect.Lists;
import org.apache.commons.lang3.time.FastDateFormat;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2024/6/19 14:11
 */
public class Constants {

    // 人员开始准入初始化
    public static final String CYCLE_START_DATE_INIT = "2020-01-01 ";
    public static final String CYCLE_START_TIME_INIT = "00:00:00";
    // 人员结束准入初始化
    public static final String CYCLE_END_DATE_INIT = "2100-01-01 ";
    public static final String CYCLE_END_TIME_INIT = "00:00:00";

    // 人员同步数量
    public static final Integer PERSON_SYNC_LIMIT = 10;
    // 车辆同步数量
    public static final Integer CAR_SYNC_LIMIT = 50;
    
    // SM4 密钥
    public static final String NUMBER_PUBLIC_KEY = "dead1404d0e0628344db62f0d02c996a";

    // 动态磁盘序列号
    public static String realTimeSerialNumber = "";

    // 授权码分隔符
    public final static String REGEX = "!@#\\$%<>";

    public static final String DATE_FORMAT_SHORT_DATE = "yyyy/MM/dd HH:mm:ss";
    
    /**
     * 精确到天日期格式2 yyyy-MM-dd
     */
    public final static FastDateFormat DATE_FORMAT_DAY = FastDateFormat.getInstance(DATE_FORMAT_SHORT_DATE);
    
    /**
     * 行人道闸是否首次同步
     */
    public static List<String> firstSyncByBarrierGatePersonList = Lists.newCopyOnWriteArrayList();
    
    /**
     * 参建单位orgId
     */
    public static final String PARTICIPATION_UNIT_ORG_ID = "0";

    /**
     * 数据库截取标识
     */
    public static final String LAST_SQL = " limit 1 ";

    public static final String RANDOM_KEY_PREFIX = "random_";


    /**
     * 默认密码
     */
//    public final static String DEFAULT_PASSWORD = "Jlkwl.000";
    public final static String DEFAULT_PASSWORD = "Aa123456!";

    /**
     * sip服务返回码
     */
    public static class SipResultCode{
        public static final String SUCCESS_CODE = "0";
    }


    /**
     * 参见类型
     */
    public static class ConstructionType{
        public static final String construction = "1";
        public static final String supervisor = "2";
    }
}
